'use strict';
const db = uniCloud.database();
const collection = db.collection('swiper');

// exports.main = async (event, context) => {
// 	//event为客户端上传的参数
// 	console.log('获取event : ', event);
// 	const theList = await collection.get();
// 	//返回数据给客户端
// 	return theList
// };
exports.main = async (event, context) => {
	// const collection = db.collection('unicloud-test')
	const res = await collection.get()
	return res
};


// async function getIndexPic(event,context){
// 	const theList = await collection.get();
// 	return theList;
// }
